\(\int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx\) [37]

   Optimal result
   Rubi [A] (verified)
   Mathematica [B] (warning: unable to verify)
   Maple [B] (warning: unable to verify)
   Fricas [B] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [F(-1)]
   Mupad [F(-1)]

Optimal result

Integrand size = 35, antiderivative size = 140 \[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=-\frac {2 \sqrt {c} \text {arctanh}\left (\frac {\sqrt {a} \sqrt {c} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f}+\frac {\sqrt {2} \sqrt {c-d} \text {arctanh}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f} \]

[Out]

-2*arctanh(cos(f*x+e)*a^(1/2)*c^(1/2)/(a+a*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2))*c^(1/2)/f/a^(1/2)+arctanh
(1/2*cos(f*x+e)*a^(1/2)*(c-d)^(1/2)*2^(1/2)/(a+a*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2))*2^(1/2)*(c-d)^(1/2)
/f/a^(1/2)

Rubi [A] (verified)

Time = 0.33 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3023, 2861, 214, 3022, 212} \[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=\frac {\sqrt {2} \sqrt {c-d} \text {arctanh}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f}-\frac {2 \sqrt {c} \text {arctanh}\left (\frac {\sqrt {a} \sqrt {c} \cos (e+f x)}{\sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f} \]

[In]

Int[(Csc[e + f*x]*Sqrt[c + d*Sin[e + f*x]])/Sqrt[a + a*Sin[e + f*x]],x]

[Out]

(-2*Sqrt[c]*ArcTanh[(Sqrt[a]*Sqrt[c]*Cos[e + f*x])/(Sqrt[a + a*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]])])/(Sqrt
[a]*f) + (Sqrt[2]*Sqrt[c - d]*ArcTanh[(Sqrt[a]*Sqrt[c - d]*Cos[e + f*x])/(Sqrt[2]*Sqrt[a + a*Sin[e + f*x]]*Sqr
t[c + d*Sin[e + f*x]])])/(Sqrt[a]*f)

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 2861

Int[1/(Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> D
ist[-2*(a/f), Subst[Int[1/(2*b^2 - (a*c - b*d)*x^2), x], x, b*(Cos[e + f*x]/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c +
 d*Sin[e + f*x]]))], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 -
 d^2, 0]

Rule 3022

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/(sin[(e_.) + (f_.)*(x_)]*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x
_)]]), x_Symbol] :> Dist[-2*(a/f), Subst[Int[1/(1 - a*c*x^2), x], x, Cos[e + f*x]/(Sqrt[a + b*Sin[e + f*x]]*Sq
rt[c + d*Sin[e + f*x]])], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[
b*c + a*d, 0]

Rule 3023

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/(sin[(e_.) + (f_.)*(x_)]*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x
_)]]), x_Symbol] :> Dist[(b*c - a*d)/c, Int[1/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]]), x], x] + Di
st[a/c, Int[Sqrt[c + d*Sin[e + f*x]]/(Sin[e + f*x]*Sqrt[a + b*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e,
f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && EqQ[c^2 - d^2, 0]

Rubi steps \begin{align*} \text {integral}& = \frac {c \int \frac {\csc (e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx}{a}+(-c+d) \int \frac {1}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx \\ & = -\frac {(2 c) \text {Subst}\left (\int \frac {1}{1-a c x^2} \, dx,x,\frac {\cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{f}+\frac {(2 a (c-d)) \text {Subst}\left (\int \frac {1}{2 a^2-(a c-a d) x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{f} \\ & = -\frac {2 \sqrt {c} \text {arctanh}\left (\frac {\sqrt {a} \sqrt {c} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f}+\frac {\sqrt {2} \sqrt {c-d} \text {arctanh}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {a} f} \\ \end{align*}

Mathematica [B] (warning: unable to verify)

Leaf count is larger than twice the leaf count of optimal. \(665\) vs. \(2(140)=280\).

Time = 10.59 (sec) , antiderivative size = 665, normalized size of antiderivative = 4.75 \[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=\frac {\csc (e+f x) \left (\sqrt {c} \log \left (\tan \left (\frac {1}{2} (e+f x)\right )\right )-\sqrt {2} \sqrt {c-d} \log \left (1+\tan \left (\frac {1}{2} (e+f x)\right )\right )+\sqrt {c} \log \left (d+\sqrt {2} \sqrt {c} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+c \tan \left (\frac {1}{2} (e+f x)\right )\right )-\sqrt {c} \log \left (c+\sqrt {2} \sqrt {c} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+d \tan \left (\frac {1}{2} (e+f x)\right )\right )+\sqrt {2} \sqrt {c-d} \log \left (c-d+2 \sqrt {c-d} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )\right )\right ) \sqrt {c+d \sin (e+f x)}}{f \sqrt {a (1+\sin (e+f x))} \left (\sqrt {c} \csc (e+f x)+\frac {c \sqrt {\sec ^2\left (\frac {1}{2} (e+f x)\right )}}{2 \sqrt {c+d \sin (e+f x)}}-\frac {\sqrt {c-d} \sec ^2\left (\frac {1}{2} (e+f x)\right )}{\sqrt {2} \left (1+\tan \left (\frac {1}{2} (e+f x)\right )\right )}-\frac {\sqrt {c} \left (d \sec ^2\left (\frac {1}{2} (e+f x)\right )+\frac {\sqrt {2} \sqrt {c} \left (\frac {1}{1+\cos (e+f x)}\right )^{3/2} (d+d \cos (e+f x)+c \sin (e+f x))}{\sqrt {c+d \sin (e+f x)}}\right )}{2 \left (c+\sqrt {2} \sqrt {c} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+d \tan \left (\frac {1}{2} (e+f x)\right )\right )}+\frac {\sqrt {2} \sqrt {c-d} \left (-\frac {1}{2} (c-d) \sec ^2\left (\frac {1}{2} (e+f x)\right )+\frac {\sqrt {c-d} \left (\frac {1}{1+\cos (e+f x)}\right )^{3/2} (d+d \cos (e+f x)+c \sin (e+f x))}{\sqrt {c+d \sin (e+f x)}}\right )}{c-d+2 \sqrt {c-d} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )}\right )} \]

[In]

Integrate[(Csc[e + f*x]*Sqrt[c + d*Sin[e + f*x]])/Sqrt[a + a*Sin[e + f*x]],x]

[Out]

(Csc[e + f*x]*(Sqrt[c]*Log[Tan[(e + f*x)/2]] - Sqrt[2]*Sqrt[c - d]*Log[1 + Tan[(e + f*x)/2]] + Sqrt[c]*Log[d +
 Sqrt[2]*Sqrt[c]*Sqrt[(1 + Cos[e + f*x])^(-1)]*Sqrt[c + d*Sin[e + f*x]] + c*Tan[(e + f*x)/2]] - Sqrt[c]*Log[c
+ Sqrt[2]*Sqrt[c]*Sqrt[(1 + Cos[e + f*x])^(-1)]*Sqrt[c + d*Sin[e + f*x]] + d*Tan[(e + f*x)/2]] + Sqrt[2]*Sqrt[
c - d]*Log[c - d + 2*Sqrt[c - d]*Sqrt[(1 + Cos[e + f*x])^(-1)]*Sqrt[c + d*Sin[e + f*x]] + (-c + d)*Tan[(e + f*
x)/2]])*Sqrt[c + d*Sin[e + f*x]])/(f*Sqrt[a*(1 + Sin[e + f*x])]*(Sqrt[c]*Csc[e + f*x] + (c*Sqrt[Sec[(e + f*x)/
2]^2])/(2*Sqrt[c + d*Sin[e + f*x]]) - (Sqrt[c - d]*Sec[(e + f*x)/2]^2)/(Sqrt[2]*(1 + Tan[(e + f*x)/2])) - (Sqr
t[c]*(d*Sec[(e + f*x)/2]^2 + (Sqrt[2]*Sqrt[c]*((1 + Cos[e + f*x])^(-1))^(3/2)*(d + d*Cos[e + f*x] + c*Sin[e +
f*x]))/Sqrt[c + d*Sin[e + f*x]]))/(2*(c + Sqrt[2]*Sqrt[c]*Sqrt[(1 + Cos[e + f*x])^(-1)]*Sqrt[c + d*Sin[e + f*x
]] + d*Tan[(e + f*x)/2])) + (Sqrt[2]*Sqrt[c - d]*(-1/2*((c - d)*Sec[(e + f*x)/2]^2) + (Sqrt[c - d]*((1 + Cos[e
 + f*x])^(-1))^(3/2)*(d + d*Cos[e + f*x] + c*Sin[e + f*x]))/Sqrt[c + d*Sin[e + f*x]]))/(c - d + 2*Sqrt[c - d]*
Sqrt[(1 + Cos[e + f*x])^(-1)]*Sqrt[c + d*Sin[e + f*x]] + (-c + d)*Tan[(e + f*x)/2])))

Maple [B] (warning: unable to verify)

Leaf count of result is larger than twice the leaf count of optimal. \(325\) vs. \(2(113)=226\).

Time = 1.80 (sec) , antiderivative size = 326, normalized size of antiderivative = 2.33

method result size
default \(\frac {\sqrt {c +d \sin \left (f x +e \right )}\, \sqrt {2}\, \left (\sqrt {2 c -2 d}\, \ln \left (\frac {2 \sqrt {2 c -2 d}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sin \left (f x +e \right )+2 c \sin \left (f x +e \right )-2 d \sin \left (f x +e \right )+2 c \cos \left (f x +e \right )-2 \cos \left (f x +e \right ) d -2 c +2 d}{-\cos \left (f x +e \right )+1+\sin \left (f x +e \right )}\right ) \sqrt {c}+\ln \left (\frac {\sqrt {c}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{1+\cos \left (f x +e \right )}}+c \csc \left (f x +e \right )-c \cot \left (f x +e \right )+d}{\sqrt {c}}\right ) c -c \ln \left (-\frac {2 \left (\sqrt {c}\, \sqrt {2}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sin \left (f x +e \right )+c \sin \left (f x +e \right )-\cos \left (f x +e \right ) d +d \right )}{\cos \left (f x +e \right )-1}\right )\right ) \left (\cos \left (f x +e \right )+\sin \left (f x +e \right )+1\right )}{2 f \left (1+\cos \left (f x +e \right )\right ) \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {c}}\) \(326\)

[In]

int((c+d*sin(f*x+e))^(1/2)/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/2/f*(c+d*sin(f*x+e))^(1/2)*2^(1/2)*((2*c-2*d)^(1/2)*ln(2*((2*c-2*d)^(1/2)*2^(1/2)*((c+d*sin(f*x+e))/(1+cos(f
*x+e)))^(1/2)*sin(f*x+e)+c*sin(f*x+e)-d*sin(f*x+e)+c*cos(f*x+e)-cos(f*x+e)*d-c+d)/(-cos(f*x+e)+1+sin(f*x+e)))*
c^(1/2)+ln((c^(1/2)*2^(1/2)*((c+d*sin(f*x+e))/(1+cos(f*x+e)))^(1/2)+c*csc(f*x+e)-c*cot(f*x+e)+d)/c^(1/2))*c-c*
ln(-2*(c^(1/2)*2^(1/2)*((c+d*sin(f*x+e))/(1+cos(f*x+e)))^(1/2)*sin(f*x+e)+c*sin(f*x+e)-cos(f*x+e)*d+d)/(cos(f*
x+e)-1)))*(cos(f*x+e)+sin(f*x+e)+1)/(1+cos(f*x+e))/(a*(1+sin(f*x+e)))^(1/2)/((c+d*sin(f*x+e))/(1+cos(f*x+e)))^
(1/2)/c^(1/2)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 288 vs. \(2 (113) = 226\).

Time = 0.61 (sec) , antiderivative size = 2791, normalized size of antiderivative = 19.94 \[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=\text {Too large to display} \]

[In]

integrate((c+d*sin(f*x+e))^(1/2)/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

[1/4*(sqrt(2)*sqrt((c - d)/a)*log(((c^2 - 14*c*d + 17*d^2)*cos(f*x + e)^3 + 4*sqrt(2)*((c - 3*d)*cos(f*x + e)^
2 - (3*c - d)*cos(f*x + e) + ((c - 3*d)*cos(f*x + e) + 4*c - 4*d)*sin(f*x + e) - 4*c + 4*d)*sqrt(a*sin(f*x + e
) + a)*sqrt(d*sin(f*x + e) + c)*sqrt((c - d)/a) - (13*c^2 - 22*c*d - 3*d^2)*cos(f*x + e)^2 - 4*c^2 - 8*c*d - 4
*d^2 - 2*(9*c^2 - 14*c*d + 9*d^2)*cos(f*x + e) + ((c^2 - 14*c*d + 17*d^2)*cos(f*x + e)^2 - 4*c^2 - 8*c*d - 4*d
^2 + 2*(7*c^2 - 18*c*d + 7*d^2)*cos(f*x + e))*sin(f*x + e))/(cos(f*x + e)^3 + 3*cos(f*x + e)^2 + (cos(f*x + e)
^2 - 2*cos(f*x + e) - 4)*sin(f*x + e) - 2*cos(f*x + e) - 4)) + sqrt(c/a)*log(((c^4 - 28*c^3*d + 70*c^2*d^2 - 2
8*c*d^3 + d^4)*cos(f*x + e)^5 - (31*c^4 - 196*c^3*d + 154*c^2*d^2 - 4*c*d^3 - d^4)*cos(f*x + e)^4 + c^4 + 4*c^
3*d + 6*c^2*d^2 + 4*c*d^3 + d^4 - 2*(81*c^4 - 252*c^3*d + 150*c^2*d^2 - 28*c*d^3 + d^4)*cos(f*x + e)^3 + 2*(79
*c^4 - 100*c^3*d + 74*c^2*d^2 - 4*c*d^3 - d^4)*cos(f*x + e)^2 - 8*((c^3 - 7*c^2*d + 7*c*d^2 - d^3)*cos(f*x + e
)^4 - 2*(5*c^3 - 14*c^2*d + 5*c*d^2)*cos(f*x + e)^3 + 51*c^3 - 59*c^2*d + 17*c*d^2 - d^3 - 2*(18*c^3 - 33*c^2*
d + 12*c*d^2 - d^3)*cos(f*x + e)^2 + 2*(13*c^3 - 14*c^2*d + 5*c*d^2)*cos(f*x + e) + ((c^3 - 7*c^2*d + 7*c*d^2
- d^3)*cos(f*x + e)^3 - 51*c^3 + 59*c^2*d - 17*c*d^2 + d^3 + (11*c^3 - 35*c^2*d + 17*c*d^2 - d^3)*cos(f*x + e)
^2 - (25*c^3 - 31*c^2*d + 7*c*d^2 - d^3)*cos(f*x + e))*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(d*sin(f*x +
 e) + c)*sqrt(c/a) + (289*c^4 - 476*c^3*d + 230*c^2*d^2 - 28*c*d^3 + d^4)*cos(f*x + e) + ((c^4 - 28*c^3*d + 70
*c^2*d^2 - 28*c*d^3 + d^4)*cos(f*x + e)^4 + c^4 + 4*c^3*d + 6*c^2*d^2 + 4*c*d^3 + d^4 + 32*(c^4 - 7*c^3*d + 7*
c^2*d^2 - c*d^3)*cos(f*x + e)^3 - 2*(65*c^4 - 140*c^3*d + 38*c^2*d^2 - 12*c*d^3 + d^4)*cos(f*x + e)^2 - 32*(9*
c^4 - 15*c^3*d + 7*c^2*d^2 - c*d^3)*cos(f*x + e))*sin(f*x + e))/(cos(f*x + e)^5 + cos(f*x + e)^4 - 2*cos(f*x +
 e)^3 - 2*cos(f*x + e)^2 + (cos(f*x + e)^4 - 2*cos(f*x + e)^2 + 1)*sin(f*x + e) + cos(f*x + e) + 1)))/f, 1/4*(
sqrt(2)*sqrt((c - d)/a)*log(((c^2 - 14*c*d + 17*d^2)*cos(f*x + e)^3 + 4*sqrt(2)*((c - 3*d)*cos(f*x + e)^2 - (3
*c - d)*cos(f*x + e) + ((c - 3*d)*cos(f*x + e) + 4*c - 4*d)*sin(f*x + e) - 4*c + 4*d)*sqrt(a*sin(f*x + e) + a)
*sqrt(d*sin(f*x + e) + c)*sqrt((c - d)/a) - (13*c^2 - 22*c*d - 3*d^2)*cos(f*x + e)^2 - 4*c^2 - 8*c*d - 4*d^2 -
 2*(9*c^2 - 14*c*d + 9*d^2)*cos(f*x + e) + ((c^2 - 14*c*d + 17*d^2)*cos(f*x + e)^2 - 4*c^2 - 8*c*d - 4*d^2 + 2
*(7*c^2 - 18*c*d + 7*d^2)*cos(f*x + e))*sin(f*x + e))/(cos(f*x + e)^3 + 3*cos(f*x + e)^2 + (cos(f*x + e)^2 - 2
*cos(f*x + e) - 4)*sin(f*x + e) - 2*cos(f*x + e) - 4)) + 2*sqrt(-c/a)*arctan(-1/4*((c^2 - 6*c*d + d^2)*cos(f*x
 + e)^2 - 9*c^2 + 6*c*d - d^2 + 8*(c^2 - c*d)*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(d*sin(f*x + e) + c)*
sqrt(-c/a)/((c^2*d - c*d^2)*cos(f*x + e)^3 - (c^3 - 3*c^2*d)*cos(f*x + e)*sin(f*x + e) + (2*c^3 - c^2*d + c*d^
2)*cos(f*x + e))))/f, 1/4*(2*sqrt(2)*sqrt(-(c - d)/a)*arctan(1/4*sqrt(2)*sqrt(a*sin(f*x + e) + a)*((c - 3*d)*s
in(f*x + e) - 3*c + d)*sqrt(d*sin(f*x + e) + c)*sqrt(-(c - d)/a)/((c*d - d^2)*cos(f*x + e)*sin(f*x + e) + (c^2
 - c*d)*cos(f*x + e))) + sqrt(c/a)*log(((c^4 - 28*c^3*d + 70*c^2*d^2 - 28*c*d^3 + d^4)*cos(f*x + e)^5 - (31*c^
4 - 196*c^3*d + 154*c^2*d^2 - 4*c*d^3 - d^4)*cos(f*x + e)^4 + c^4 + 4*c^3*d + 6*c^2*d^2 + 4*c*d^3 + d^4 - 2*(8
1*c^4 - 252*c^3*d + 150*c^2*d^2 - 28*c*d^3 + d^4)*cos(f*x + e)^3 + 2*(79*c^4 - 100*c^3*d + 74*c^2*d^2 - 4*c*d^
3 - d^4)*cos(f*x + e)^2 - 8*((c^3 - 7*c^2*d + 7*c*d^2 - d^3)*cos(f*x + e)^4 - 2*(5*c^3 - 14*c^2*d + 5*c*d^2)*c
os(f*x + e)^3 + 51*c^3 - 59*c^2*d + 17*c*d^2 - d^3 - 2*(18*c^3 - 33*c^2*d + 12*c*d^2 - d^3)*cos(f*x + e)^2 + 2
*(13*c^3 - 14*c^2*d + 5*c*d^2)*cos(f*x + e) + ((c^3 - 7*c^2*d + 7*c*d^2 - d^3)*cos(f*x + e)^3 - 51*c^3 + 59*c^
2*d - 17*c*d^2 + d^3 + (11*c^3 - 35*c^2*d + 17*c*d^2 - d^3)*cos(f*x + e)^2 - (25*c^3 - 31*c^2*d + 7*c*d^2 - d^
3)*cos(f*x + e))*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(d*sin(f*x + e) + c)*sqrt(c/a) + (289*c^4 - 476*c^
3*d + 230*c^2*d^2 - 28*c*d^3 + d^4)*cos(f*x + e) + ((c^4 - 28*c^3*d + 70*c^2*d^2 - 28*c*d^3 + d^4)*cos(f*x + e
)^4 + c^4 + 4*c^3*d + 6*c^2*d^2 + 4*c*d^3 + d^4 + 32*(c^4 - 7*c^3*d + 7*c^2*d^2 - c*d^3)*cos(f*x + e)^3 - 2*(6
5*c^4 - 140*c^3*d + 38*c^2*d^2 - 12*c*d^3 + d^4)*cos(f*x + e)^2 - 32*(9*c^4 - 15*c^3*d + 7*c^2*d^2 - c*d^3)*co
s(f*x + e))*sin(f*x + e))/(cos(f*x + e)^5 + cos(f*x + e)^4 - 2*cos(f*x + e)^3 - 2*cos(f*x + e)^2 + (cos(f*x +
e)^4 - 2*cos(f*x + e)^2 + 1)*sin(f*x + e) + cos(f*x + e) + 1)))/f, 1/2*(sqrt(2)*sqrt(-(c - d)/a)*arctan(1/4*sq
rt(2)*sqrt(a*sin(f*x + e) + a)*((c - 3*d)*sin(f*x + e) - 3*c + d)*sqrt(d*sin(f*x + e) + c)*sqrt(-(c - d)/a)/((
c*d - d^2)*cos(f*x + e)*sin(f*x + e) + (c^2 - c*d)*cos(f*x + e))) + sqrt(-c/a)*arctan(-1/4*((c^2 - 6*c*d + d^2
)*cos(f*x + e)^2 - 9*c^2 + 6*c*d - d^2 + 8*(c^2 - c*d)*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(d*sin(f*x +
 e) + c)*sqrt(-c/a)/((c^2*d - c*d^2)*cos(f*x + e)^3 - (c^3 - 3*c^2*d)*cos(f*x + e)*sin(f*x + e) + (2*c^3 - c^2
*d + c*d^2)*cos(f*x + e))))/f]

Sympy [F]

\[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=\int \frac {\sqrt {c + d \sin {\left (e + f x \right )}}}{\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \sin {\left (e + f x \right )}}\, dx \]

[In]

integrate((c+d*sin(f*x+e))**(1/2)/sin(f*x+e)/(a+a*sin(f*x+e))**(1/2),x)

[Out]

Integral(sqrt(c + d*sin(e + f*x))/(sqrt(a*(sin(e + f*x) + 1))*sin(e + f*x)), x)

Maxima [F]

\[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=\int { \frac {\sqrt {d \sin \left (f x + e\right ) + c}}{\sqrt {a \sin \left (f x + e\right ) + a} \sin \left (f x + e\right )} \,d x } \]

[In]

integrate((c+d*sin(f*x+e))^(1/2)/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(d*sin(f*x + e) + c)/(sqrt(a*sin(f*x + e) + a)*sin(f*x + e)), x)

Giac [F(-1)]

Timed out. \[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=\text {Timed out} \]

[In]

integrate((c+d*sin(f*x+e))^(1/2)/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

Timed out

Mupad [F(-1)]

Timed out. \[ \int \frac {\csc (e+f x) \sqrt {c+d \sin (e+f x)}}{\sqrt {a+a \sin (e+f x)}} \, dx=\int \frac {\sqrt {c+d\,\sin \left (e+f\,x\right )}}{\sin \left (e+f\,x\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}} \,d x \]

[In]

int((c + d*sin(e + f*x))^(1/2)/(sin(e + f*x)*(a + a*sin(e + f*x))^(1/2)),x)

[Out]

int((c + d*sin(e + f*x))^(1/2)/(sin(e + f*x)*(a + a*sin(e + f*x))^(1/2)), x)